<!DOCTYPE html>
<html>
<head>
<title>活动管理</title>
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="Author" content="larry" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="../../statics/common/cascader/cascader/cascader.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/layui.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/autocomplete.css">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/soulTable.css">
<link rel="stylesheet" type="text/css" href="../../statics/plugins/ztree/css/metroStyle/metroStyle.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/common.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/font-awesome-4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/list-search-table.css">
<!--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/layui-soul-table/docs/soulTable.css" media="all"/>-->
<script type="text/javascript" src="../../statics/plugins/jquery.min.js"></script>
<script type="text/javascript" src="../../statics/common/lib/vue.min.js"></script>
<script type="text/javascript" src="../../statics/plugins/ztree/jquery.ztree.all.min.js"></script>
<script type="text/javascript" src="../../statics/common/layui/layui.all.js"></script>
<script type="text/javascript" src="../../statics/common/js/axios.min.js"></script>
<script type="text/javascript" src="../../statics/common/js/xm-select.js"></script>
<script type="text/javascript" src="../../statics/js/common.js"></script>
<script type="text/javascript" src="../../statics/js/upload.js"></script>
<script type="text/javascript" src="../../statics/common/step/steps.js"></script>
<link rel="stylesheet" href="../../statics/css/jxcPublicAll.css"  media="all">
<link href="../../statics/common/photoviewer/dist/photoviewer.css" rel="stylesheet">
<link rel="stylesheet" href="../../statics/common/step/steps.css">
<!--<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.7/cropper.css" media="all">-->
<link rel="stylesheet" href="../../statics/js/modules/cropper/cropper.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/css/viewer.min.css">
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.7/cropper.min.js"></script>-->
<script src="../../statics/js/modules/cropper/cropper.min.js"></script>
<script src="../../statics/common/photoviewer/dist/photoviewer.js"></script>
<script src="../../statics/common/layui/autocomplete.js"></script>
<script  src="../../statics/js/modules/viewer/viewer.min.js"></script>
<script src="../../statics/common/print-js/print.min.js"></script>
<link rel="stylesheet" type="text/css" href="../../statics/common/print-js/print.min.css">
<script type="text/javascript" src="../../statics/common/xmselect/xm-select.js"></script>
<script type="text/javascript" src="../../statics/js/searchview.js"></script>
<script type="text/javascript" src="../../statics/js/tableedit.js"></script>

<!--<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.0&type=webgl&ak=eo4XeZhRKHsQ0NOe6u6NkKscmRsk416B"></script>-->

<!-- 引入组件库 -->
<link rel="stylesheet" type="text/css" href="../../statics/css/index.css">






   <!-- <style>
        .layui-table-cell {
            padding:0 5px;
            height:inherit;
            overflow:visible;
            text-overflow:inherit;
            white-space:normal;
            word-break: break-all;
        }
    </style>-->
</head>
<body class="ren-body">

<!--热门活动form表单-->
<div id="hotEvent" v-cloak>
    <div class="list-header-content-box">
        <div class="list-header-card display">
            <div id="field1" class="flex"  style="cursor:pointer;" @click="changeStatus(1)"  >
                <div class="list-header-card-text" >热门活动</div>
                 <div class="list-header-card-number">{{headCount.hotEventCount}}</div>

            </div>
            <div id="field2" class="flex"  style="cursor:pointer;" @click="changeStatus(2)">
                <div class="list-header-card-text">Banner活动</div>
                <div class="list-header-card-number">{{headCount.bannerEventCount}}</div>

            </div>
            <div id="field3" class="flex"  style="cursor:pointer;" @click="changeStatus(3)">
                <div class="list-header-card-text">合作加盟宣传</div>
                <div class="list-header-card-number">{{headCount.cooperationEventCount}}</div>

            </div>
            <div id="field4" class="flex"  style="cursor:pointer;" @click="changeStatus(4)">
                <div class="list-header-card-text">售后服务宣传</div>
                <div class="list-header-card-number">{{headCount.afterServiceEventCount}}</div>

            </div>
        </div>
    </div>

    <div id="hotEventDiv">
        <div class="list-search-title-box">
            <form class="layui-form" style="box-shadow: 0 0 20px #eee;padding-right: 15px;">
                <section class="jxc-section" style="display: flex;align-items: flex-start;white-space: nowrap;">
                    <div class="card layui-row" style="flex: 1">
                        <div class="layui-form-item">
                            <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12">
                                <label class="layui-form-label">活动名称:</label>
                                <div class="layui-input-inline">
                                    <input type="text" class="layui-input searchVal" v-model="q.activityName"  placeholder="请输入活动名称"/>
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12">
                                <label class="layui-form-label">活动跳转类型:</label>
                                <div class="layui-input-inline">
                                    <!--  活动跳转类型(1.外部链接，2.内部跳转，3.产品跳转)-->
                                    <select v-model="q.activityJumpType" class="layui-select" lay-filter="activityJumpType">
                                        <option value="">全部</option>
                                        <option value="1">外部链接</option>
                                        <option value="2">内部跳转</option>
                                        <option value="3">产品跳转</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12">
                                <label class="layui-form-label">活动状态:</label>
                                <div class="layui-input-inline">
                                    <!-- 活动状态(1可用，0禁用)默认可用；-->
                                    <select v-model="q.isEnable" class="layui-select" lay-filter="isEnable">
                                        <option value="">全部</option>
                                        <option value="1">可用</option>
                                        <option value="0">禁用</option>
                                    </select>
                                </div>
                            </div>
                            <section v-show="isFilter">
                                <div class=" flex-box layui-inline layui-col-md12 layui-col-sm12 layui-col-xs12">
                                    <label class="layui-form-label">上架时间:</label>
                                    <div class="list-search-sup-title new-layui-title">
                                        <div class="task-content-box-tab">
                                            <div class="display task-content-box-tab layui-col-md8 layui-col-sm8 layui-col-xs12" type="launchTimeType">
                                                <div value="0"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">昨天</div>
                                                <div value="1"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">今日</div>
                                                <div value="2"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">上周</div>
                                                <div value="3"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">本周</div>
                                                <div value="4"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">上月</div>
                                                <div value="5"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">本月</div>
                                                <div value="6"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">本季</div>
                                                <div value="7"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">本年</div>
                                            </div>
                                            <div class="layui-col-md4 layui-col-sm4 layui-col-xs12">
                                                <input type="text" class="layui-input"  id="launchTimeStr" v-model="q.launchTimeStr" readonly placeholder="选择日期范围" style="width: 300px;" autocomplete="off">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="flex-box layui-inline layui-col-md12 layui-col-sm12 layui-col-xs12">
                                    <label class="layui-form-label">下架时间:</label>
                                    <div class="list-search-sup-title new-layui-title">
                                        <div class="task-content-box-tab">
                                            <div class="display task-content-box-tab layui-col-md8 layui-col-sm8 layui-col-xs12" type="offShelfTimeType">
                                                <div value="0"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">昨天</div>
                                                <div value="1"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">今天</div>
                                                <div value="2"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">上周</div>
                                                <div value="3"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">本周</div>
                                                <div value="4"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">上月</div>
                                                <div value="5"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">本月</div>
                                                <div value="6"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">本季</div>
                                                <div value="7"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">本年</div>
                                            </div>
                                            <div class="layui-col-md4 layui-col-sm4 layui-col-xs12">
                                                <input type="text" class="layui-input" id="offShelfTimeStr"  v-model="q.offShelfTimeStr" readonly placeholder="选择日期范围"
                                                       style="width: 300px;" autocomplete="off">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="flex-box layui-inline layui-col-md12 layui-col-sm12 layui-col-xs12">
                                    <label class="layui-form-label">创建时间:</label>
                                    <div class="list-search-sup-title new-layui-title">
                                        <div class="task-content-box-tab">
                                            <div class="display task-content-box-tab layui-col-md8 layui-col-sm8 layui-col-xs12"
                                                 type="createTimeType">
                                                <div value="0"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">昨天</div>
                                                <div value="1"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">今天</div>
                                                <div value="2"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">上周</div>
                                                <div value="3"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">本周</div>
                                                <div value="4"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">上月</div>
                                                <div value="5"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">本月</div>
                                                <div value="6"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">本季</div>
                                                <div value="7"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">本年</div>
                                            </div>
                                            <div class="layui-col-md4 layui-col-sm4 layui-col-xs12">
                                                <input type="text" class="layui-input" id="createTimeStr"
                                                       v-model="q.createTimeStr" readonly placeholder="选择日期范围"
                                                       style="width: 300px;" autocomplete="off">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </section>
                        </div>
                    </div>
                    <div style="display: flex;align-items: center;">
                        <a class="layui-btn search-btn" @click="query">查询</a>
                        <a class="layui-btn reset-btn" @click="reset">重置</a>
                        <div @click="bindFilter" style="margin-left: 10px;cursor: pointer;user-select: none;">
                            <span style="color: #2251C5;">高级筛选</span>
                            <img src="../../../statics/images/高级筛选@2x.png" style="width:14px">
                        </div>
                    </div>
                </section>
            </form>
        </div>
        <div class="list-search-title-box">
            <form class="layui-form">
                <div style="display:flex;width: 100%;">
                    <div class="layui-form-item layui-row" style="width: 100%;">
                        <div class="list-search-form-button" style="width: 100%;">
                            <a class="layui-btn search-btn" @click="exports">导出</a>
                            <a class="layui-btn reset-btn" @click="add">新增</a>
                        </div>
                    </div>
                </div>
            </form>
        </div>
        <div class="layui-tab-item layui-show">
            <table class="layui-hide" id="hoteventGrid" lay-filter="hoteventGrid"></table>
        </div>
    </div>

</div>
<!--Banner活动form表单-->
<div id="bannerEvent" v-cloak>

    <div id="bannerEventDiv">
        <div class="list-search-title-box">
            <form class="layui-form" style="box-shadow: 0 0 20px #eee;padding-right: 15px;">
                <section class="jxc-section" style="display: flex;align-items: flex-start;white-space: nowrap;">
                    <div class="card layui-row" style="flex: 1">
                        <div class="layui-form-item">
                            <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12">
                                <label class="layui-form-label">活动名称:</label>
                                <div class="layui-input-inline">
                                    <input type="text" class="layui-input searchVal" v-model="q.activityName"  placeholder="请输入活动名称"/>
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12">
                                <label class="layui-form-label">活动跳转类型:</label>
                                <div class="layui-input-inline">
                                    <!--  活动跳转类型(1.外部链接，2.内部跳转，3.产品跳转)-->
                                    <select v-model="q.activityJumpType" class="layui-select" lay-filter="bannerActivityJumpType">
                                        <option value="">全部</option>
                                        <option value="1">外部链接</option>
                                        <option value="2">内部跳转</option>
                                        <option value="3">产品跳转</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12">
                                <label class="layui-form-label">活动状态:</label>
                                <div class="layui-input-inline">
                                    <!--  活动状态(1可用，0禁用)默认可用；-->
                                    <select v-model="q.isEnable" class="layui-select" lay-filter="bannerIsEnable">
                                        <option value="">全部</option>
                                        <option value="1">可用</option>
                                        <option value="0">禁用</option>
                                    </select>
                                </div>
                            </div>
                            <section v-show="isFilter">
                                <div class=" flex-box layui-inline layui-col-md12 layui-col-sm12 layui-col-xs12">
                                    <label class="layui-form-label">上架时间:</label>
                                    <div class="list-search-sup-title new-layui-title">
                                        <div class="task-content-box-tab">
                                            <div class="display task-content-box-tab layui-col-md8 layui-col-sm8 layui-col-xs12" type="bannerLaunchTimeType">
                                                <div value="0"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">昨天</div>
                                                <div value="1"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">今日</div>
                                                <div value="2"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">上周</div>
                                                <div value="3"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">本周</div>
                                                <div value="4"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">上月</div>
                                                <div value="5"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">本月</div>
                                                <div value="6"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">本季</div>
                                                <div value="7"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">本年</div>
                                            </div>
                                            <div class="layui-col-md4 layui-col-sm4 layui-col-xs12">
                                                <input type="text" class="layui-input"  id="bannerLaunchTimeStr" v-model="q.launchTimeStr" readonly placeholder="选择日期范围" style="width: 300px;" autocomplete="off">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="flex-box layui-inline layui-col-md12 layui-col-sm12 layui-col-xs12">
                                    <label class="layui-form-label">下架时间:</label>
                                    <div class="list-search-sup-title new-layui-title">
                                        <div class="task-content-box-tab">
                                            <div class="display task-content-box-tab layui-col-md8 layui-col-sm8 layui-col-xs12" type="bannerOffShelfTimeType">
                                                <div value="0"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">昨天</div>
                                                <div value="1"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">今天</div>
                                                <div value="2"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">上周</div>
                                                <div value="3"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">本周</div>
                                                <div value="4"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">上月</div>
                                                <div value="5"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">本月</div>
                                                <div value="6"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">本季</div>
                                                <div value="7"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">本年</div>
                                            </div>
                                            <div class="layui-col-md4 layui-col-sm4 layui-col-xs12">
                                                <input type="text" class="layui-input" id="bannerOffShelfTimeStr"  v-model="q.offShelfTimeStr" readonly placeholder="选择日期范围"
                                                       style="width: 300px;" autocomplete="off">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="flex-box layui-inline layui-col-md12 layui-col-sm12 layui-col-xs12">
                                    <label class="layui-form-label">创建时间:</label>
                                    <div class="list-search-sup-title new-layui-title">
                                        <div class="task-content-box-tab">
                                            <div class="display task-content-box-tab layui-col-md8 layui-col-sm8 layui-col-xs12"
                                                 type="bannerCreateTimeType">
                                                <div value="0"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">昨天</div>
                                                <div value="1"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">今天</div>
                                                <div value="2"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">上周</div>
                                                <div value="3"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">本周</div>
                                                <div value="4"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">上月</div>
                                                <div value="5"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">本月</div>
                                                <div value="6"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">本季</div>
                                                <div value="7"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">本年</div>
                                            </div>
                                            <div class="layui-col-md4 layui-col-sm4 layui-col-xs12">
                                                <input type="text" class="layui-input" id="bannerCreateTimeStr"
                                                       v-model="q.createTimeStr" readonly placeholder="选择日期范围"
                                                       style="width: 300px;" autocomplete="off">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </section>
                        </div>
                    </div>
                    <div style="display: flex;align-items: center;">
                        <a class="layui-btn search-btn" @click="query">查询</a>
                        <a class="layui-btn reset-btn" @click="reset">重置</a>
                        <div @click="bindFilter" style="margin-left: 10px;cursor: pointer;user-select: none;">
                            <span style="color: #2251C5;">高级筛选</span>
                            <img src="../../../statics/images/高级筛选@2x.png" style="width:14px">
                        </div>
                    </div>
                </section>
            </form>
        </div>
        <div class="list-search-title-box">
            <form class="layui-form">
                <div style="display:flex;width: 100%;">
                    <div class="layui-form-item layui-row" style="width: 100%;">
                        <div class="list-search-form-button" style="width: 100%;">
                            <!--                        <#if shiro.hasPermission("activity:activity:export")>-->
                            <a class="layui-btn search-btn" @click="exports" v-m-perm="['activity:activity:export']">导出</a>
                            <!--                        </#if>-->
                            <a class="layui-btn reset-btn" @click="add">新增</a>
                        </div>
                    </div>
                </div>
            </form>
        </div>
        <div class="layui-tab-item layui-show">
            <table class="layui-hide" id="bannerEventGrid" lay-filter="bannerEventGrid"></table>
        </div>
    </div>
</div>
<!--合作加盟宣传列表form表单-->
<div id="cooperationEvent" v-cloak>
    <div class="list-table-content-box">
        <table class="layui-hide" id="cooperationEventGrid" lay-filter="cooperationEventGrid"></table>
    </div>
</div>
<!--售后服务宣传列表form表单-->
<div id="afterserviceEvent" v-cloak>
    <div class="list-table-content-box">
        <table class="layui-hide" id="afterserviceEventGrid" lay-filter="afterserviceEventGrid"></table>
    </div>
</div>

<!--操作-->
<script type="text/html" id="barTpl">
<!--    <#if shiro.hasPermission("activity:activity:info")>-->
    <a class="layui-grid-btn-xs" lay-event="view" v-m-perm="['activity:activity:info']" more-btn-index="{{d.LAY_INDEX-1}}">详情</a>
<!--    </#if>-->
    {{#if(d.isEnable==0){}}
<!--        <#if shiro.hasPermission("activity:activity:update")>-->
          <a class="layui-grid-btn-xs" lay-event="edit" v-m-perm="['activity:activity:update']" more-btn-index="{{d.LAY_INDEX-1}}">编辑</a>
<!--        </#if>-->
<!--        <#if shiro.hasPermission("activity:activity:delete")>-->
          <a class="layui-grid-btn-xs" lay-event="del" v-m-perm="['activity:activity:delete']" more-btn-index="{{d.LAY_INDEX-1}}">删除</a>
<!--        </#if>-->
<!--        <#if shiro.hasPermission("activity:activity:start")>-->
           <a class="layui-grid-btn-xs" lay-event="start" v-m-perm="['activity:activity:start']" more-btn-index="{{d.LAY_INDEX-1}}">启用</a>
<!--        </#if>-->
    {{#}}}
    {{#if(d.isEnable==1){}}
<!--        <#if shiro.hasPermission("activity:activity:stop")>-->
          <a class="layui-grid-btn-xs" lay-event="stop" v-m-perm="['activity:activity:stop']" more-btn-index="{{d.LAY_INDEX-1}}">停用</a>
<!--        </#if>-->
    {{#}}}


</script>
<script src="../../statics/js/modules/element-ui/index.js"></script>
<script src="../../statics/js/modules/element-ui/wangEditor.min.js"></script>
<script src="../../statics/js/modules/activity/activitylist.js?_${.now?long}"></script>
</body>
</html>
